import request from '@/utils/request'

/**
 * @description: 获取下拉员工数据
 * @param {*}
 * @return {*}
 */
export function getEmployeeSimple() {
  return request({
    url: '/api/sys/user/simple'
  })
}

export function getEmployeeList(page, size) {
  return request.get('/api/sys/user', { params: { page, size }})
}

// 删除员工接口
export function delEmployee(id) {
  return request.delete(`/api/sys/user/${id}`)
}

// 新增员工接口
export const addEmployee = (data) => {
  return request.post('/api/sys/user', data)
}
